# Copyright (c) 2025 Huawei Technologies Co., Ltd.
# This file is a part of the CANN Open Software.
# Licensed under CANN Open Software License Agreement Version 1.0 (the "License").
# Please refer to the License for details. You may not use this file except in compliance with the License.
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
# See LICENSE in the root of the software repository for the full text of the License.

cd ..
./batchgemm_make_simulator.sh
LD_LIBRARY_PATH=/home/workspace/gpf/CANN/ascend-toolkit/latest/tools/simulator/Ascend910B3/lib:$LD_LIBRARY_PATH
python3 test_gen_data.py 0 0 0 $1 $2 $3 $4
msprof op simulator --application="./batchgemm_simulator 0 0 $1 $2 $3 $4" --output="./simulator/sim_result"
rm -rf data/
cd simulator